<?xml version="1.0" encoding="UTF-8"?>

<process xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable" xmlns:info="http://www.tibco.com/bw/process/info" xmlns:ns="http://xmlns.example.com/20140430174122PLT" xmlns:ns0="http://www.tibco.com/pe/EngineTypes" xmlns:ns1="http://www.example.org/Events/REST/1398859882503" xmlns:ns2="http://xmlns.example.com/20140430151657" xmlns:ns3="http://www.tibco.com/pe/WriteToLogActivitySchema" xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912" xmlns:sca-bpel="http://docs.oasis-open.org/ns/opencsa/sca-bpel/200801" xmlns:tib="http://ns.tibco.com/bw/property" xmlns:tibex="http://www.tibco.com/bpel/2007/extensions" xmlns:xsd="http://www.w3.org/2001/XMLSchema" exitOnStandardFault="no" name="tibco.bw.sample.binding.rest.bookstore.Events" suppressJoinFailure="yes" targetNamespace="http://xmlns.example.com/20140513214117" x="140" y="20" width="609" height="1548" type="process">  
     
  <partnerLinks> 
    <partnerLink myRole="use" name="Events" partnerLinkType="ns:EventsPLT" sca-bpel:ignore="false" sca-bpel:service="Events"/>  
    <partnerLink name="Service" partnerLinkType="ns:ServicePLT" partnerRole="use" sca-bpel:ignore="true" sca-bpel:reference="Service" sca-bpel:wiredByImpl="false"> 
      <ReferenceWire dynamic="false" inline="false" processConfigurationName="" processName="tibco.bw.sample.binding.rest.bookstore.db.EventsDB" serviceName="EventsPersist"/> 
    </partnerLink>  
    <partnerLink myRole="use" name="Event" partnerLinkType="ns:EventPLT" sca-bpel:ignore="false" sca-bpel:service="Event"/> 
  </partnerLinks>  
    
    
  <scope name="scope"> 
    <flow name="flow"> 
      <links/>  
      <pick createInstance="yes" name="pick" xpdlId="c53a1c29-6509-4878-83f6-7a7201edb109" x="76" y="44" width="457" height="1453" type="pick"> 
        <onMessage operation="post" partnerLink="Events" portType="ns1:Events" xpdlId="16d4b6f4-6c9a-4519-8964-6960a6e9389f" variable="post" x="9" y="11" width="439" height="206" type="onMessage"> 
          <scope name="scope1"> 
            <variables> 
              <variable name="ServiceOp" type="xsd:string"> 
                <from> 
                  <literal>Events/post</literal> 
                </from> 
              </variable> 
            </variables>  
            <faultHandlers> 
              <catchAll faultDetailsVar="FaultDetails" faultNameVar="FaultName" xpdlId="d7a805cb-f99d-4818-a018-fc3878211eb8" x="42" y="195" width="338" height="177" type="catchAll"> 
                <scope name="scope6"> 
                  <flow name="flow6"> 
                    <links> 
                      <link name="LogToReply" points="[[163,82],[192,82],[192,83],[221,83]]"/> 
                    </links>  
                    <extensionActivity x="114" y="58" width="48" height="48" type="log" name="Log"> 
                      <activityExtension expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://www.tibco.com/pe/WriteToLogActivitySchema&quot; version=&quot;2.0&quot;&gt;&lt;xsl:param name=&quot;FaultDetails&quot;/&gt;&lt;xsl:param name=&quot;ServiceOp&quot;/&gt;&lt;xsl:template name=&quot;Log-input&quot; match=&quot;/&quot;&gt;&lt;tns:ActivityInput&gt;&lt;msgCode&gt;&lt;xsl:value-of select=&quot;&amp;quot;1503&amp;quot;&quot;/&gt;&lt;/msgCode&gt;&lt;message&gt;&lt;xsl:value-of select=&quot;concat($ServiceOp, &amp;quot; failed: &amp;quot;, $FaultDetails/Msg)&quot;/&gt;&lt;/message&gt;&lt;/tns:ActivityInput&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0" inputVariable="Log-input" name="Log" xpdlId="93061beb-c381-4d4a-823e-ef8b10b0b0e9">  
                        <sources> 
                          <source linkName="LogToReply"/> 
                        </sources>  
                        <inputBindings> 
                          <inputBinding expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://www.tibco.com/pe/WriteToLogActivitySchema&quot; version=&quot;2.0&quot;&gt;&lt;xsl:param name=&quot;FaultDetails&quot;/&gt;&lt;xsl:param name=&quot;ServiceOp&quot;/&gt;&lt;xsl:template name=&quot;Log-input&quot; match=&quot;/&quot;&gt;&lt;tns:ActivityInput&gt;&lt;msgCode&gt;&lt;xsl:value-of select=&quot;&amp;quot;1503&amp;quot;&quot;/&gt;&lt;/msgCode&gt;&lt;message&gt;&lt;xsl:value-of select=&quot;concat($ServiceOp, &amp;quot; failed: &amp;quot;, $FaultDetails/Msg)&quot;/&gt;&lt;/message&gt;&lt;/tns:ActivityInput&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0"/> 
                        </inputBindings>  
                        <config> 
                          <bwext:BWActivity xmlns:bwext="http://tns.tibco.com/bw/model/core/bwext" xmlns:activityconfig="http://tns.tibco.com/bw/model/activityconfig" xmlns:generalactivities="http://ns.tibco.com/bw/palette/generalactivities" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" activityTypeID="bw.generalactivities.log" version="6.0.0.001">  
                            <activityConfig> 
                              <properties name="config" xsi:type="activityconfig:EMFProperty"> 
                                <type href="http://ns.tibco.com/bw/palette/generalactivities#//Log"/>  
                                <value role="Info" suppressJobInfo="true" xsi:type="generalactivities:Log"/> 
                              </properties> 
                            </activityConfig> 
                          </bwext:BWActivity> 
                        </config> 
                      </activityExtension> 
                    </extensionActivity>  
                    <reply faultName="serverFault" name="Reply" operation="post" partnerLink="Events" portType="ns1:Events" xpdlId="476b2dbc-dbd1-481f-b03e-0021730a78e4" variable="Reply-input" x="221" y="59" width="48" height="48" type="reply"> 
                      <inputBinding expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tns="http://www.example.org/Events/REST/1398859882503" xmlns:tns1="http://tns.tibco.com/bw/REST" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bw="http://www.tibco.com/bw/xpath/bw-custom-functions" version="2.0"&gt;&lt;xsl:param name="FaultDetails"/&gt;&lt;xsl:param name="ServiceOp"/&gt;&lt;xsl:template name="Reply-input" match="/"&gt;&lt;tns:post5XXFaultMessage&gt;&lt;serverError&gt;&lt;tns1:server5XXError&gt;&lt;statusCode&gt;&lt;xsl:value-of select="xsd:integer(bw:getModuleProperty(&amp;quot;ec_ServiceUnavailable&amp;quot;))"/&gt;&lt;/statusCode&gt;&lt;message&gt;&lt;xsl:value-of select="concat($ServiceOp, &amp;quot; failed: &amp;quot;, $FaultDetails/Msg)"/&gt;&lt;/message&gt;&lt;/tns1:server5XXError&gt;&lt;/serverError&gt;&lt;/tns:post5XXFaultMessage&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;</inputBinding>  
                      <inputBindings> 
                        <partBinding expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://www.example.org/Events/REST/1398859882503&quot; xmlns:tns1=&quot;http://tns.tibco.com/bw/REST&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:bw=&quot;http://www.tibco.com/bw/xpath/bw-custom-functions&quot; version=&quot;2.0&quot;&gt;
    &lt;xsl:param name=&quot;FaultDetails&quot;/&gt;
    &lt;xsl:param name=&quot;ServiceOp&quot;/&gt;
    &lt;xsl:template name=&quot;Reply-input&quot; match=&quot;/&quot;&gt;
        &lt;tns1:server5XXError&gt;
            &lt;statusCode&gt;
                &lt;xsl:value-of select=&quot;xsd:integer(bw:getModuleProperty(&amp;quot;ec_ServiceUnavailable&amp;quot;))&quot;/&gt;
            &lt;/statusCode&gt;
            &lt;message&gt;
                &lt;xsl:value-of select=&quot;concat($ServiceOp, &amp;quot; failed: &amp;quot;, $FaultDetails/Msg)&quot;/&gt;
            &lt;/message&gt;
        &lt;/tns1:server5XXError&gt;
    &lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0"/> 
                      </inputBindings>  
                      <targets> 
                        <target linkName="LogToReply"/> 
                      </targets> 
                    </reply> 
                  </flow> 
                </scope> 
              </catchAll> 
            </faultHandlers>  
            <flow name="flow1"> 
              <links> 
                <link name="addEventsTopostOut" points="[[221,39],[308,39]]"/> 
              </links>  
              <empty name="OnMessageStart" constructor="onMessageStart" xpdlId="fe414ccb-344c-45ed-aff9-0b0b746782bc" x="-19" y="63" width="16" height="16" type="onMessageStart"/>  
              <empty name="OnMessageEnd" constructor="onMessageEnd" xpdlId="8535e6bc-b48b-4add-81cd-3341ba52e472" x="437" y="63" width="16" height="16" type="onMessageEnd"/>  
              <reply name="postOut" operation="post" partnerLink="Events" portType="ns1:Events" xpdlId="b28945e4-aed6-439d-9bc5-ffacd079576a" variable="postOut-input" x="308" y="15" width="48" height="48" type="reply"> 
                <inputBinding expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tns="http://www.example.org/Events/REST/1398859882503" xmlns:tns1="http://www.example.org/Events" xmlns:tns2="http://xmlns.example.com/20140430151657" version="2.0"&gt;&lt;xsl:param name="addEvents"/&gt;&lt;xsl:template name="postOut-input" match="/"&gt;&lt;tns:postResponse&gt;&lt;item&gt;&lt;tns1:Events&gt;&lt;xsl:copy-of select="$addEvents/parameters/tns2:operationResponse1/tns1:Event"/&gt;&lt;/tns1:Events&gt;&lt;/item&gt;&lt;/tns:postResponse&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;</inputBinding>  
                <inputBindings> 
                  <partBinding expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://www.example.org/Events/REST/1398859882503&quot; xmlns:tns1=&quot;http://www.example.org/Events&quot; xmlns:tns2=&quot;http://xmlns.example.com/20140430151657&quot; version=&quot;2.0&quot;&gt;
    &lt;xsl:param name=&quot;addEvents.parameters&quot;/&gt;
    &lt;xsl:template name=&quot;postOut-input&quot; match=&quot;/&quot;&gt;
        &lt;tns1:Events&gt;
            &lt;xsl:copy-of select=&quot;$addEvents.parameters/tns1:Event&quot;/&gt;
        &lt;/tns1:Events&gt;
    &lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0"/> 
                </inputBindings>  
                <targets> 
                  <target linkName="addEventsTopostOut"/> 
                </targets> 
              </reply>  
              <invoke inputVariable="addEvents-input" name="addEvents" operation="addEvents" outputVariable="addEvents" partnerLink="Service" portType="ns2:Service" xpdlId="b4a78240-b741-4367-9f23-a3e2c3eef34b" x="172" y="15" width="48" height="48" type="invoke"> 
                <inputBinding expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tns="http://xmlns.example.com/20140430151657" xmlns:tns1="http://www.example.org/Events" version="2.0"&gt;&lt;xsl:param name="post"/&gt;&lt;xsl:template name="addEvents-input" match="/"&gt;&lt;tns:operationRequest1&gt;&lt;parameters&gt;&lt;tns:operationRequest1&gt;&lt;xsl:copy-of select="$post/item/tns1:Events/tns1:Event"/&gt;&lt;/tns:operationRequest1&gt;&lt;/parameters&gt;&lt;/tns:operationRequest1&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;</inputBinding>  
                <inputBindings> 
                  <partBinding expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://xmlns.example.com/20140430151657&quot; xmlns:tns1=&quot;http://www.example.org/Events&quot; version=&quot;2.0&quot;&gt;
    &lt;xsl:param name=&quot;post.item&quot;/&gt;
    &lt;xsl:template name=&quot;addEvents-input&quot; match=&quot;/&quot;&gt;
        &lt;tns:operationRequest1&gt;
            &lt;xsl:copy-of select=&quot;$post.item/tns1:Event&quot;/&gt;
        &lt;/tns:operationRequest1&gt;
    &lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0"/> 
                </inputBindings>  
                <sources> 
                  <source linkName="addEventsTopostOut"/> 
                </sources> 
              </invoke> 
            </flow> 
          </scope> 
        </onMessage>  
        <onMessage operation="get" partnerLink="Events" portType="ns1:Events" xpdlId="b59982b4-4f4d-4a15-870d-a499a290c699" variable="get" x="9" y="384" width="439" height="208" type="onMessage"> 
          <scope name="scope2"> 
            <variables> 
              <variable name="ServiceOp" type="xsd:string"> 
                <from> 
                  <literal>Events/get</literal> 
                </from> 
              </variable> 
            </variables>  
            <faultHandlers> 
              <catchAll faultDetailsVar="FaultDetails" faultNameVar="FaultName" xpdlId="8393e557-0ca3-43ed-b47f-91b31ad8e6dc" x="42" y="197" width="338" height="21" collapse="true" type="catchAll"> 
                <scope name="scope10"> 
                  <flow name="flow10"> 
                    <links> 
                      <link name="Log1ToReply1" points="[[161,80],[188,80],[188,81],[216,81]]"/> 
                    </links>  
                    <extensionActivity x="112" y="56" width="48" height="48" type="log" name="Log1"> 
                      <activityExtension expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://www.tibco.com/pe/WriteToLogActivitySchema&quot; version=&quot;2.0&quot;&gt;&lt;xsl:param name=&quot;FaultDetails&quot;/&gt;&lt;xsl:param name=&quot;ServiceOp&quot;/&gt;&lt;xsl:template name=&quot;Log1-input&quot; match=&quot;/&quot;&gt;&lt;tns:ActivityInput&gt;&lt;msgCode&gt;&lt;xsl:value-of select=&quot;&amp;quot;1503&amp;quot;&quot;/&gt;&lt;/msgCode&gt;&lt;message&gt;&lt;xsl:value-of select=&quot;concat($ServiceOp, &amp;quot; failed: &amp;quot;, $FaultDetails/Msg)&quot;/&gt;&lt;/message&gt;&lt;/tns:ActivityInput&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0" inputVariable="Log1-input" name="Log1" xpdlId="28078cf5-5ae5-40e9-8d22-abf33d36b107">  
                        <sources> 
                          <source linkName="Log1ToReply1"/> 
                        </sources>  
                        <inputBindings> 
                          <inputBinding expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://www.tibco.com/pe/WriteToLogActivitySchema&quot; version=&quot;2.0&quot;&gt;&lt;xsl:param name=&quot;FaultDetails&quot;/&gt;&lt;xsl:param name=&quot;ServiceOp&quot;/&gt;&lt;xsl:template name=&quot;Log1-input&quot; match=&quot;/&quot;&gt;&lt;tns:ActivityInput&gt;&lt;msgCode&gt;&lt;xsl:value-of select=&quot;&amp;quot;1503&amp;quot;&quot;/&gt;&lt;/msgCode&gt;&lt;message&gt;&lt;xsl:value-of select=&quot;concat($ServiceOp, &amp;quot; failed: &amp;quot;, $FaultDetails/Msg)&quot;/&gt;&lt;/message&gt;&lt;/tns:ActivityInput&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0"/> 
                        </inputBindings>  
                        <config> 
                          <bwext:BWActivity xmlns:bwext="http://tns.tibco.com/bw/model/core/bwext" xmlns:activityconfig="http://tns.tibco.com/bw/model/activityconfig" xmlns:generalactivities="http://ns.tibco.com/bw/palette/generalactivities" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" activityTypeID="bw.generalactivities.log" version="6.0.0.001">  
                            <activityConfig> 
                              <properties name="config" xsi:type="activityconfig:EMFProperty"> 
                                <type href="http://ns.tibco.com/bw/palette/generalactivities#//Log"/>  
                                <value role="Info" suppressJobInfo="true" xsi:type="generalactivities:Log"/> 
                              </properties> 
                            </activityConfig> 
                          </bwext:BWActivity> 
                        </config> 
                      </activityExtension> 
                    </extensionActivity>  
                    <reply faultName="serverFault" name="Reply1" operation="get" partnerLink="Events" portType="ns1:Events" xpdlId="e6df413a-34b4-414c-8ebd-f8d2577d0f88" variable="Reply1-input" x="216" y="57" width="48" height="48" type="reply"> 
                      <inputBinding expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tns="http://www.example.org/Events/REST/1398859882503" xmlns:tns1="http://tns.tibco.com/bw/REST" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bw="http://www.tibco.com/bw/xpath/bw-custom-functions" version="2.0"&gt;&lt;xsl:param name="FaultDetails"/&gt;&lt;xsl:param name="ServiceOp"/&gt;&lt;xsl:template name="Reply1-input" match="/"&gt;&lt;tns:get5XXFaultMessage&gt;&lt;serverError&gt;&lt;tns1:server5XXError&gt;&lt;statusCode&gt;&lt;xsl:value-of select="xsd:integer(bw:getModuleProperty(&amp;quot;ec_ServiceUnavailable&amp;quot;))"/&gt;&lt;/statusCode&gt;&lt;message&gt;&lt;xsl:value-of select="concat($ServiceOp, &amp;quot; failed: &amp;quot;, $FaultDetails/Msg)"/&gt;&lt;/message&gt;&lt;/tns1:server5XXError&gt;&lt;/serverError&gt;&lt;/tns:get5XXFaultMessage&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;</inputBinding>  
                      <inputBindings> 
                        <partBinding expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://www.example.org/Events/REST/1398859882503&quot; xmlns:tns1=&quot;http://tns.tibco.com/bw/REST&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:bw=&quot;http://www.tibco.com/bw/xpath/bw-custom-functions&quot; version=&quot;2.0&quot;&gt;
    &lt;xsl:param name=&quot;FaultDetails&quot;/&gt;
    &lt;xsl:param name=&quot;ServiceOp&quot;/&gt;
    &lt;xsl:template name=&quot;Reply1-input&quot; match=&quot;/&quot;&gt;
        &lt;tns1:server5XXError&gt;
            &lt;statusCode&gt;
                &lt;xsl:value-of select=&quot;xsd:integer(bw:getModuleProperty(&amp;quot;ec_ServiceUnavailable&amp;quot;))&quot;/&gt;
            &lt;/statusCode&gt;
            &lt;message&gt;
                &lt;xsl:value-of select=&quot;concat($ServiceOp, &amp;quot; failed: &amp;quot;, $FaultDetails/Msg)&quot;/&gt;
            &lt;/message&gt;
        &lt;/tns1:server5XXError&gt;
    &lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0"/> 
                      </inputBindings>  
                      <targets> 
                        <target linkName="Log1ToReply1"/> 
                      </targets> 
                    </reply> 
                  </flow> 
                </scope> 
              </catchAll> 
            </faultHandlers>  
            <flow name="flow2"> 
              <links> 
                <link name="getAllEventsTogetOut" points="[[216,39],[308,39]]"/> 
              </links>  
              <empty name="OnMessageStart1" constructor="onMessageStart" xpdlId="12931cc8-4c59-4149-a13e-2f2231f80952" x="-19" y="63" width="16" height="16" type="onMessageStart"/>  
              <empty name="OnMessageEnd1" constructor="onMessageEnd" xpdlId="89e81450-4af1-4bc0-ae07-7b817d57b35a" x="437" y="63" width="16" height="16" type="onMessageEnd"/>  
              <reply name="getOut" operation="get" partnerLink="Events" portType="ns1:Events" xpdlId="5028e1bb-de19-4ea8-988a-2ffb7c2bd837" variable="getOut-input" x="308" y="15" width="48" height="48" type="reply"> 
                <inputBinding expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tns="http://www.example.org/Events/REST/1398859882503" xmlns:tns1="http://www.example.org/Events" xmlns:tns2="http://xmlns.example.com/20140430151657" version="2.0"&gt;&lt;xsl:param name="getAllEvents"/&gt;&lt;xsl:template name="getOut-input" match="/"&gt;&lt;tns:getResponse&gt;&lt;item&gt;&lt;tns1:Events&gt;&lt;xsl:copy-of select="$getAllEvents/parameters/tns2:operationResponse/tns1:Event"/&gt;&lt;/tns1:Events&gt;&lt;/item&gt;&lt;/tns:getResponse&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;</inputBinding>  
                <inputBindings> 
                  <partBinding expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://www.example.org/Events/REST/1398859882503&quot; xmlns:tns1=&quot;http://www.example.org/Events&quot; xmlns:tns2=&quot;http://xmlns.example.com/20140430151657&quot; version=&quot;2.0&quot;&gt;
    &lt;xsl:param name=&quot;getAllEvents.parameters&quot;/&gt;
    &lt;xsl:template name=&quot;getOut-input&quot; match=&quot;/&quot;&gt;
        &lt;tns1:Events&gt;
            &lt;xsl:copy-of select=&quot;$getAllEvents.parameters/tns1:Event&quot;/&gt;
        &lt;/tns1:Events&gt;
    &lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0"/> 
                </inputBindings>  
                <targets> 
                  <target linkName="getAllEventsTogetOut"/> 
                </targets> 
              </reply>  
              <invoke inputVariable="getAllEvents-input" name="getAllEvents" operation="getAllEvents" outputVariable="getAllEvents" partnerLink="Service" portType="ns2:Service" xpdlId="3a69ee38-482f-499b-9af2-c678e849d00f" x="167" y="15" width="48" height="48" type="invoke"> 
                <inputBinding expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tns="http://xmlns.example.com/20140430151657" version="2.0"&gt;&lt;xsl:template name="getAllEvents-input" match="/"&gt;&lt;tns:operationRequest&gt;&lt;parameters&gt;&lt;tns:operationRequest&gt;&lt;in&gt;&lt;xsl:value-of select="&amp;quot;Get All Events&amp;quot;"/&gt;&lt;/in&gt;&lt;/tns:operationRequest&gt;&lt;/parameters&gt;&lt;/tns:operationRequest&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;</inputBinding>  
                <inputBindings> 
                  <partBinding expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://xmlns.example.com/20140430151657&quot; version=&quot;2.0&quot;&gt;
    &lt;xsl:template name=&quot;getAllEvents-input&quot; match=&quot;/&quot;&gt;
        &lt;tns:operationRequest&gt;
            &lt;in&gt;
                &lt;xsl:value-of select=&quot;&amp;quot;Get All Events&amp;quot;&quot;/&gt;
            &lt;/in&gt;
        &lt;/tns:operationRequest&gt;
    &lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0"/> 
                </inputBindings>  
                <sources> 
                  <source linkName="getAllEventsTogetOut"/> 
                </sources> 
              </invoke> 
            </flow> 
          </scope> 
        </onMessage>  
        <onMessage operation="get" partnerLink="Event" portType="ns1:Event" xpdlId="ab4fe757-3ae8-4c85-8ff4-1a76fa4f3814" variable="get1" x="9" y="603" width="439" height="210" type="onMessage"> 
          <scope name="scope3"> 
            <variables> 
              <variable name="ServiceOp" type="xsd:string"> 
                <from> 
                  <literal>Event/get</literal> 
                </from> 
              </variable> 
            </variables>  
            <faultHandlers> 
              <catchAll faultDetailsVar="FaultDetails" faultNameVar="FaultName" xpdlId="0cd0d177-4820-4edd-828f-b9b9badfc965" x="42" y="199" width="338" height="177" type="catchAll"> 
                <scope name="scope7"> 
                  <flow name="flow7"> 
                    <links> 
                      <link name="Log2ToReply2" points="[[167,86],[251,86]]"/> 
                    </links>  
                    <extensionActivity x="118" y="62" width="48" height="48" type="log" name="Log2"> 
                      <activityExtension expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://www.tibco.com/pe/WriteToLogActivitySchema&quot; version=&quot;2.0&quot;&gt;&lt;xsl:param name=&quot;FaultDetails&quot;/&gt;&lt;xsl:param name=&quot;ServiceOp&quot;/&gt;&lt;xsl:template name=&quot;Log2-input&quot; match=&quot;/&quot;&gt;&lt;tns:ActivityInput&gt;&lt;msgCode&gt;&lt;xsl:value-of select=&quot;&amp;quot;1503&amp;quot;&quot;/&gt;&lt;/msgCode&gt;&lt;message&gt;&lt;xsl:value-of select=&quot;concat($ServiceOp, &amp;quot; failed: &amp;quot;, $FaultDetails/Msg)&quot;/&gt;&lt;/message&gt;&lt;/tns:ActivityInput&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0" inputVariable="Log2-input" name="Log2" xpdlId="d237eee8-2d75-425c-831c-3b4ddaf6ab31">  
                        <sources> 
                          <source linkName="Log2ToReply2"/> 
                        </sources>  
                        <inputBindings> 
                          <inputBinding expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://www.tibco.com/pe/WriteToLogActivitySchema&quot; version=&quot;2.0&quot;&gt;&lt;xsl:param name=&quot;FaultDetails&quot;/&gt;&lt;xsl:param name=&quot;ServiceOp&quot;/&gt;&lt;xsl:template name=&quot;Log2-input&quot; match=&quot;/&quot;&gt;&lt;tns:ActivityInput&gt;&lt;msgCode&gt;&lt;xsl:value-of select=&quot;&amp;quot;1503&amp;quot;&quot;/&gt;&lt;/msgCode&gt;&lt;message&gt;&lt;xsl:value-of select=&quot;concat($ServiceOp, &amp;quot; failed: &amp;quot;, $FaultDetails/Msg)&quot;/&gt;&lt;/message&gt;&lt;/tns:ActivityInput&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0"/> 
                        </inputBindings>  
                        <config> 
                          <bwext:BWActivity xmlns:bwext="http://tns.tibco.com/bw/model/core/bwext" xmlns:activityconfig="http://tns.tibco.com/bw/model/activityconfig" xmlns:generalactivities="http://ns.tibco.com/bw/palette/generalactivities" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" activityTypeID="bw.generalactivities.log" version="6.0.0.001">  
                            <activityConfig> 
                              <properties name="config" xsi:type="activityconfig:EMFProperty"> 
                                <type href="http://ns.tibco.com/bw/palette/generalactivities#//Log"/>  
                                <value role="Info" suppressJobInfo="true" xsi:type="generalactivities:Log"/> 
                              </properties> 
                            </activityConfig> 
                          </bwext:BWActivity> 
                        </config> 
                      </activityExtension> 
                    </extensionActivity>  
                    <reply faultName="serverFault" name="Reply2" operation="get" partnerLink="Event" portType="ns1:Event" xpdlId="4980a92a-d929-41da-8f26-19baba812c80" variable="Reply2-input" x="251" y="62" width="48" height="48" type="reply"> 
                      <inputBinding expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tns="http://www.example.org/Events/REST/1398859882503" xmlns:tns1="http://tns.tibco.com/bw/REST" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bw="http://www.tibco.com/bw/xpath/bw-custom-functions" version="2.0"&gt;&lt;xsl:param name="FaultDetails"/&gt;&lt;xsl:param name="ServiceOp"/&gt;&lt;xsl:template name="Reply2-input" match="/"&gt;&lt;tns:get5XXFaultMessage1&gt;&lt;serverError&gt;&lt;tns1:server5XXError&gt;&lt;statusCode&gt;&lt;xsl:value-of select="xsd:integer(bw:getModuleProperty(&amp;quot;ec_ServiceUnavailable&amp;quot;))"/&gt;&lt;/statusCode&gt;&lt;message&gt;&lt;xsl:value-of select="concat($ServiceOp, &amp;quot; failed: &amp;quot;, $FaultDetails/Msg)"/&gt;&lt;/message&gt;&lt;/tns1:server5XXError&gt;&lt;/serverError&gt;&lt;/tns:get5XXFaultMessage1&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;</inputBinding>  
                      <inputBindings> 
                        <partBinding expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://www.example.org/Events/REST/1398859882503&quot; xmlns:tns1=&quot;http://tns.tibco.com/bw/REST&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:bw=&quot;http://www.tibco.com/bw/xpath/bw-custom-functions&quot; version=&quot;2.0&quot;&gt;
    &lt;xsl:param name=&quot;FaultDetails&quot;/&gt;
    &lt;xsl:param name=&quot;ServiceOp&quot;/&gt;
    &lt;xsl:template name=&quot;Reply2-input&quot; match=&quot;/&quot;&gt;
        &lt;tns1:server5XXError&gt;
            &lt;statusCode&gt;
                &lt;xsl:value-of select=&quot;xsd:integer(bw:getModuleProperty(&amp;quot;ec_ServiceUnavailable&amp;quot;))&quot;/&gt;
            &lt;/statusCode&gt;
            &lt;message&gt;
                &lt;xsl:value-of select=&quot;concat($ServiceOp, &amp;quot; failed: &amp;quot;, $FaultDetails/Msg)&quot;/&gt;
            &lt;/message&gt;
        &lt;/tns1:server5XXError&gt;
    &lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0"/> 
                      </inputBindings>  
                      <targets> 
                        <target linkName="Log2ToReply2"/> 
                      </targets> 
                    </reply> 
                  </flow> 
                </scope> 
              </catchAll> 
            </faultHandlers>  
            <flow name="flow3"> 
              <links> 
                <link name="getEventByIDTogetOut1" points="[[211,39],[308,39]]"/> 
              </links>  
              <empty name="OnMessageStart2" constructor="onMessageStart" xpdlId="8d92276d-d1e1-4d95-91df-abe3cd434d64" x="-19" y="63" width="16" height="16" type="onMessageStart"/>  
              <empty name="OnMessageEnd2" constructor="onMessageEnd" xpdlId="f205cdc1-93b7-45cc-a6bb-1c370dc6eb07" x="437" y="63" width="16" height="16" type="onMessageEnd"/>  
              <reply name="getOut1" operation="get" partnerLink="Event" portType="ns1:Event" xpdlId="64bdff79-d3f7-4032-b576-fe366ec74840" variable="getOut1-input" x="308" y="15" width="48" height="48" type="reply"> 
                <inputBinding expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tns="http://www.example.org/Events/REST/1398859882503" xmlns:tns1="http://xmlns.example.com/20140430151657" xmlns:tns2="http://www.example.org/Events" version="2.0"&gt;&lt;xsl:param name="getEventByID"/&gt;&lt;xsl:template name="getOut1-input" match="/"&gt;&lt;tns:getResponse1&gt;&lt;item&gt;&lt;xsl:for-each select="$getEventByID/parameters/tns1:operationResponse2"&gt;&lt;tns2:Event&gt;&lt;xsl:if test="tns2:id"&gt;&lt;tns2:id&gt;&lt;xsl:value-of select="tns2:id"/&gt;&lt;/tns2:id&gt;&lt;/xsl:if&gt;&lt;xsl:if test="tns2:summary"&gt;&lt;tns2:summary&gt;&lt;xsl:value-of select="tns2:summary"/&gt;&lt;/tns2:summary&gt;&lt;/xsl:if&gt;&lt;xsl:if test="tns2:description"&gt;&lt;tns2:description&gt;&lt;xsl:value-of select="tns2:description"/&gt;&lt;/tns2:description&gt;&lt;/xsl:if&gt;&lt;xsl:if test="tns2:authorName"&gt;&lt;tns2:authorName&gt;&lt;xsl:value-of select="tns2:authorName"/&gt;&lt;/tns2:authorName&gt;&lt;/xsl:if&gt;&lt;xsl:if test="tns2:bookIsbn"&gt;&lt;tns2:bookIsbn&gt;&lt;xsl:value-of select="tns2:bookIsbn"/&gt;&lt;/tns2:bookIsbn&gt;&lt;/xsl:if&gt;&lt;xsl:if test="tns2:date"&gt;&lt;tns2:date&gt;&lt;xsl:value-of select="tns2:date"/&gt;&lt;/tns2:date&gt;&lt;/xsl:if&gt;&lt;/tns2:Event&gt;&lt;/xsl:for-each&gt;&lt;/item&gt;&lt;/tns:getResponse1&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;</inputBinding>  
                <inputBindings> 
                  <partBinding expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://www.example.org/Events/REST/1398859882503&quot; xmlns:tns1=&quot;http://xmlns.example.com/20140430151657&quot; xmlns:tns2=&quot;http://www.example.org/Events&quot; version=&quot;2.0&quot;&gt;
    &lt;xsl:param name=&quot;getEventByID.parameters&quot;/&gt;
    &lt;xsl:template name=&quot;getOut1-input&quot; match=&quot;/&quot;&gt;
        &lt;xsl:for-each select=&quot;$getEventByID.parameters&quot;&gt;
            &lt;tns2:Event&gt;
                &lt;xsl:if test=&quot;tns2:id&quot;&gt;
                    &lt;tns2:id&gt;
                        &lt;xsl:value-of select=&quot;tns2:id&quot;/&gt;
                    &lt;/tns2:id&gt;
                &lt;/xsl:if&gt;
                &lt;xsl:if test=&quot;tns2:summary&quot;&gt;
                    &lt;tns2:summary&gt;
                        &lt;xsl:value-of select=&quot;tns2:summary&quot;/&gt;
                    &lt;/tns2:summary&gt;
                &lt;/xsl:if&gt;
                &lt;xsl:if test=&quot;tns2:description&quot;&gt;
                    &lt;tns2:description&gt;
                        &lt;xsl:value-of select=&quot;tns2:description&quot;/&gt;
                    &lt;/tns2:description&gt;
                &lt;/xsl:if&gt;
                &lt;xsl:if test=&quot;tns2:authorName&quot;&gt;
                    &lt;tns2:authorName&gt;
                        &lt;xsl:value-of select=&quot;tns2:authorName&quot;/&gt;
                    &lt;/tns2:authorName&gt;
                &lt;/xsl:if&gt;
                &lt;xsl:if test=&quot;tns2:bookIsbn&quot;&gt;
                    &lt;tns2:bookIsbn&gt;
                        &lt;xsl:value-of select=&quot;tns2:bookIsbn&quot;/&gt;
                    &lt;/tns2:bookIsbn&gt;
                &lt;/xsl:if&gt;
                &lt;xsl:if test=&quot;tns2:date&quot;&gt;
                    &lt;tns2:date&gt;
                        &lt;xsl:value-of select=&quot;tns2:date&quot;/&gt;
                    &lt;/tns2:date&gt;
                &lt;/xsl:if&gt;
            &lt;/tns2:Event&gt;
        &lt;/xsl:for-each&gt;
    &lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0"/> 
                </inputBindings>  
                <targets> 
                  <target linkName="getEventByIDTogetOut1"/> 
                </targets> 
              </reply>  
              <invoke inputVariable="getEventByID-input" name="getEventByID" operation="getEventByID" outputVariable="getEventByID" partnerLink="Service" portType="ns2:Service" xpdlId="d2210ef4-2fab-4a84-9475-5868c4a25c32" x="162" y="15" width="48" height="48" type="invoke"> 
                <inputBinding expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tns="http://xmlns.example.com/20140430151657" xmlns:tns1="http://www.example.org/Events/REST/1398859882503/ConceptSchema" version="2.0"&gt;&lt;xsl:param name="get1"/&gt;&lt;xsl:template name="getEventByID-input" match="/"&gt;&lt;tns:operationRequest2&gt;&lt;parameters&gt;&lt;tns:operationRequest2&gt;&lt;EventID&gt;&lt;xsl:value-of select="$get1/parameters/tns1:EventParameters/EventID"/&gt;&lt;/EventID&gt;&lt;/tns:operationRequest2&gt;&lt;/parameters&gt;&lt;/tns:operationRequest2&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;</inputBinding>  
                <inputBindings> 
                  <partBinding expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://xmlns.example.com/20140430151657&quot; xmlns:tns1=&quot;http://www.example.org/Events/REST/1398859882503/ConceptSchema&quot; version=&quot;2.0&quot;&gt;
    &lt;xsl:param name=&quot;get1.parameters&quot;/&gt;
    &lt;xsl:template name=&quot;getEventByID-input&quot; match=&quot;/&quot;&gt;
        &lt;tns:operationRequest2&gt;
            &lt;EventID&gt;
                &lt;xsl:value-of select=&quot;$get1.parameters/EventID&quot;/&gt;
            &lt;/EventID&gt;
        &lt;/tns:operationRequest2&gt;
    &lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0"/> 
                </inputBindings>  
                <sources> 
                  <source linkName="getEventByIDTogetOut1"/> 
                </sources> 
              </invoke> 
            </flow> 
          </scope> 
        </onMessage>  
        <onMessage operation="put" partnerLink="Event" portType="ns1:Event" xpdlId="4d4babbc-4c2c-4f45-87ae-575c0d6743d0" variable="put" x="9" y="980" width="439" height="215" type="onMessage"> 
          <scope name="scope4"> 
            <variables> 
              <variable name="ServiceOp" type="xsd:string"> 
                <from> 
                  <literal>Event/put</literal> 
                </from> 
              </variable> 
            </variables>  
            <faultHandlers> 
              <catchAll faultDetailsVar="FaultDetails" faultNameVar="FaultName" xpdlId="c2e85f09-c281-4378-8eb7-393517b84475" x="42" y="204" width="338" height="21" collapse="true" type="catchAll"> 
                <scope name="scope8"> 
                  <flow name="flow8"> 
                    <links> 
                      <link name="Log3ToReply3" points="[[156,82],[240,82]]"/> 
                    </links>  
                    <extensionActivity x="107" y="58" width="48" height="48" type="log" name="Log3"> 
                      <activityExtension expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://www.tibco.com/pe/WriteToLogActivitySchema&quot; version=&quot;2.0&quot;&gt;&lt;xsl:param name=&quot;FaultDetails&quot;/&gt;&lt;xsl:param name=&quot;ServiceOp&quot;/&gt;&lt;xsl:template name=&quot;Log3-input&quot; match=&quot;/&quot;&gt;&lt;tns:ActivityInput&gt;&lt;msgCode&gt;&lt;xsl:value-of select=&quot;&amp;quot;1503&amp;quot;&quot;/&gt;&lt;/msgCode&gt;&lt;message&gt;&lt;xsl:value-of select=&quot;concat($ServiceOp, &amp;quot; failed: &amp;quot;, $FaultDetails/Msg)&quot;/&gt;&lt;/message&gt;&lt;/tns:ActivityInput&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0" inputVariable="Log3-input" name="Log3" xpdlId="e902fe55-65fe-47cc-8fbc-a0a27b761a3b">  
                        <sources> 
                          <source linkName="Log3ToReply3"/> 
                        </sources>  
                        <inputBindings> 
                          <inputBinding expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://www.tibco.com/pe/WriteToLogActivitySchema&quot; version=&quot;2.0&quot;&gt;&lt;xsl:param name=&quot;FaultDetails&quot;/&gt;&lt;xsl:param name=&quot;ServiceOp&quot;/&gt;&lt;xsl:template name=&quot;Log3-input&quot; match=&quot;/&quot;&gt;&lt;tns:ActivityInput&gt;&lt;msgCode&gt;&lt;xsl:value-of select=&quot;&amp;quot;1503&amp;quot;&quot;/&gt;&lt;/msgCode&gt;&lt;message&gt;&lt;xsl:value-of select=&quot;concat($ServiceOp, &amp;quot; failed: &amp;quot;, $FaultDetails/Msg)&quot;/&gt;&lt;/message&gt;&lt;/tns:ActivityInput&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0"/> 
                        </inputBindings>  
                        <config> 
                          <bwext:BWActivity xmlns:bwext="http://tns.tibco.com/bw/model/core/bwext" xmlns:activityconfig="http://tns.tibco.com/bw/model/activityconfig" xmlns:generalactivities="http://ns.tibco.com/bw/palette/generalactivities" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" activityTypeID="bw.generalactivities.log" version="6.0.0.001">  
                            <activityConfig> 
                              <properties name="config" xsi:type="activityconfig:EMFProperty"> 
                                <type href="http://ns.tibco.com/bw/palette/generalactivities#//Log"/>  
                                <value role="Info" suppressJobInfo="true" xsi:type="generalactivities:Log"/> 
                              </properties> 
                            </activityConfig> 
                          </bwext:BWActivity> 
                        </config> 
                      </activityExtension> 
                    </extensionActivity>  
                    <reply faultName="serverFault" name="Reply3" operation="put" partnerLink="Event" portType="ns1:Event" xpdlId="1c39a4c5-8587-40d6-91b4-1312e60fc15f" variable="Reply3-input" x="240" y="58" width="48" height="48" type="reply"> 
                      <inputBinding expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tns="http://www.example.org/Events/REST/1398859882503" xmlns:tns1="http://tns.tibco.com/bw/REST" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bw="http://www.tibco.com/bw/xpath/bw-custom-functions" version="2.0"&gt;&lt;xsl:param name="FaultDetails"/&gt;&lt;xsl:param name="ServiceOp"/&gt;&lt;xsl:template name="Reply3-input" match="/"&gt;&lt;tns:put5XXFaultMessage&gt;&lt;serverError&gt;&lt;tns1:server5XXError&gt;&lt;statusCode&gt;&lt;xsl:value-of select="xsd:integer(bw:getModuleProperty(&amp;quot;ec_ServiceUnavailable&amp;quot;))"/&gt;&lt;/statusCode&gt;&lt;message&gt;&lt;xsl:value-of select="concat($ServiceOp, &amp;quot; failed: &amp;quot;, $FaultDetails/Msg)"/&gt;&lt;/message&gt;&lt;/tns1:server5XXError&gt;&lt;/serverError&gt;&lt;/tns:put5XXFaultMessage&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;</inputBinding>  
                      <inputBindings> 
                        <partBinding expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://www.example.org/Events/REST/1398859882503&quot; xmlns:tns1=&quot;http://tns.tibco.com/bw/REST&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:bw=&quot;http://www.tibco.com/bw/xpath/bw-custom-functions&quot; version=&quot;2.0&quot;&gt;
    &lt;xsl:param name=&quot;FaultDetails&quot;/&gt;
    &lt;xsl:param name=&quot;ServiceOp&quot;/&gt;
    &lt;xsl:template name=&quot;Reply3-input&quot; match=&quot;/&quot;&gt;
        &lt;tns1:server5XXError&gt;
            &lt;statusCode&gt;
                &lt;xsl:value-of select=&quot;xsd:integer(bw:getModuleProperty(&amp;quot;ec_ServiceUnavailable&amp;quot;))&quot;/&gt;
            &lt;/statusCode&gt;
            &lt;message&gt;
                &lt;xsl:value-of select=&quot;concat($ServiceOp, &amp;quot; failed: &amp;quot;, $FaultDetails/Msg)&quot;/&gt;
            &lt;/message&gt;
        &lt;/tns1:server5XXError&gt;
    &lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0"/> 
                      </inputBindings>  
                      <targets> 
                        <target linkName="Log3ToReply3"/> 
                      </targets> 
                    </reply> 
                  </flow> 
                </scope> 
              </catchAll> 
            </faultHandlers>  
            <flow name="flow4"> 
              <links> 
                <link name="updateEventToputOut" points="[[212,39],[308,39]]"/> 
              </links>  
              <empty name="OnMessageStart3" constructor="onMessageStart" xpdlId="65ccacb7-fa03-4421-a590-92e0bd7fb68f" x="-19" y="63" width="16" height="16" type="onMessageStart"/>  
              <empty name="OnMessageEnd3" constructor="onMessageEnd" xpdlId="816329ae-155e-4f80-9d71-e1b0a752c6dc" x="437" y="63" width="16" height="16" type="onMessageEnd"/>  
              <reply name="putOut" operation="put" partnerLink="Event" portType="ns1:Event" xpdlId="59b87f48-6273-40d9-9519-608046c09475" variable="putOut-input" x="308" y="15" width="48" height="48" type="reply"> 
                <inputBinding expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tns="http://www.example.org/Events/REST/1398859882503" xmlns:tns1="http://xmlns.example.com/20140430151657" xmlns:tns2="http://www.example.org/Events" version="2.0"&gt;&lt;xsl:param name="updateEvent"/&gt;&lt;xsl:template name="putOut-input" match="/"&gt;&lt;tns:putResponse&gt;&lt;item&gt;&lt;xsl:for-each select="$updateEvent/parameters/tns1:operationResponse3"&gt;&lt;tns2:Event&gt;&lt;xsl:if test="tns2:id"&gt;&lt;tns2:id&gt;&lt;xsl:value-of select="tns2:id"/&gt;&lt;/tns2:id&gt;&lt;/xsl:if&gt;&lt;xsl:if test="tns2:summary"&gt;&lt;tns2:summary&gt;&lt;xsl:value-of select="tns2:summary"/&gt;&lt;/tns2:summary&gt;&lt;/xsl:if&gt;&lt;xsl:if test="tns2:description"&gt;&lt;tns2:description&gt;&lt;xsl:value-of select="tns2:description"/&gt;&lt;/tns2:description&gt;&lt;/xsl:if&gt;&lt;xsl:if test="tns2:authorName"&gt;&lt;tns2:authorName&gt;&lt;xsl:value-of select="tns2:authorName"/&gt;&lt;/tns2:authorName&gt;&lt;/xsl:if&gt;&lt;xsl:if test="tns2:bookIsbn"&gt;&lt;tns2:bookIsbn&gt;&lt;xsl:value-of select="tns2:bookIsbn"/&gt;&lt;/tns2:bookIsbn&gt;&lt;/xsl:if&gt;&lt;xsl:if test="tns2:date"&gt;&lt;tns2:date&gt;&lt;xsl:value-of select="tns2:date"/&gt;&lt;/tns2:date&gt;&lt;/xsl:if&gt;&lt;/tns2:Event&gt;&lt;/xsl:for-each&gt;&lt;/item&gt;&lt;/tns:putResponse&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;</inputBinding>  
                <inputBindings> 
                  <partBinding expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://www.example.org/Events/REST/1398859882503&quot; xmlns:tns1=&quot;http://xmlns.example.com/20140430151657&quot; xmlns:tns2=&quot;http://www.example.org/Events&quot; version=&quot;2.0&quot;&gt;
    &lt;xsl:param name=&quot;updateEvent.parameters&quot;/&gt;
    &lt;xsl:template name=&quot;putOut-input&quot; match=&quot;/&quot;&gt;
        &lt;xsl:for-each select=&quot;$updateEvent.parameters&quot;&gt;
            &lt;tns2:Event&gt;
                &lt;xsl:if test=&quot;tns2:id&quot;&gt;
                    &lt;tns2:id&gt;
                        &lt;xsl:value-of select=&quot;tns2:id&quot;/&gt;
                    &lt;/tns2:id&gt;
                &lt;/xsl:if&gt;
                &lt;xsl:if test=&quot;tns2:summary&quot;&gt;
                    &lt;tns2:summary&gt;
                        &lt;xsl:value-of select=&quot;tns2:summary&quot;/&gt;
                    &lt;/tns2:summary&gt;
                &lt;/xsl:if&gt;
                &lt;xsl:if test=&quot;tns2:description&quot;&gt;
                    &lt;tns2:description&gt;
                        &lt;xsl:value-of select=&quot;tns2:description&quot;/&gt;
                    &lt;/tns2:description&gt;
                &lt;/xsl:if&gt;
                &lt;xsl:if test=&quot;tns2:authorName&quot;&gt;
                    &lt;tns2:authorName&gt;
                        &lt;xsl:value-of select=&quot;tns2:authorName&quot;/&gt;
                    &lt;/tns2:authorName&gt;
                &lt;/xsl:if&gt;
                &lt;xsl:if test=&quot;tns2:bookIsbn&quot;&gt;
                    &lt;tns2:bookIsbn&gt;
                        &lt;xsl:value-of select=&quot;tns2:bookIsbn&quot;/&gt;
                    &lt;/tns2:bookIsbn&gt;
                &lt;/xsl:if&gt;
                &lt;xsl:if test=&quot;tns2:date&quot;&gt;
                    &lt;tns2:date&gt;
                        &lt;xsl:value-of select=&quot;tns2:date&quot;/&gt;
                    &lt;/tns2:date&gt;
                &lt;/xsl:if&gt;
            &lt;/tns2:Event&gt;
        &lt;/xsl:for-each&gt;
    &lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0"/> 
                </inputBindings>  
                <targets> 
                  <target linkName="updateEventToputOut"/> 
                </targets> 
              </reply>  
              <invoke inputVariable="updateEvent-input" name="updateEvent" operation="updateEvent" outputVariable="updateEvent" partnerLink="Service" portType="ns2:Service" xpdlId="d3406618-69c7-4f43-abec-4ae59ba65b0c" x="163" y="15" width="48" height="48" type="invoke"> 
                <inputBinding expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tns="http://xmlns.example.com/20140430151657" xmlns:tns1="http://www.example.org/Events/REST/1398859882503/ConceptSchema" xmlns:tns2="http://www.example.org/Events" version="2.0"&gt;&lt;xsl:param name="put"/&gt;&lt;xsl:template name="updateEvent-input" match="/"&gt;&lt;tns:operationRequest3&gt;&lt;parameters&gt;&lt;tns:operationRequest3&gt;&lt;tns2:id&gt;&lt;xsl:value-of select="$put/parameters/tns1:EventParameters/EventID"/&gt;&lt;/tns2:id&gt;&lt;xsl:if test="$put/item/tns2:Event/tns2:summary"&gt;&lt;tns2:summary&gt;&lt;xsl:value-of select="$put/item/tns2:Event/tns2:summary"/&gt;&lt;/tns2:summary&gt;&lt;/xsl:if&gt;&lt;xsl:if test="$put/item/tns2:Event/tns2:description"&gt;&lt;tns2:description&gt;&lt;xsl:value-of select="$put/item/tns2:Event/tns2:description"/&gt;&lt;/tns2:description&gt;&lt;/xsl:if&gt;&lt;xsl:if test="$put/item/tns2:Event/tns2:authorName"&gt;&lt;tns2:authorName&gt;&lt;xsl:value-of select="$put/item/tns2:Event/tns2:authorName"/&gt;&lt;/tns2:authorName&gt;&lt;/xsl:if&gt;&lt;xsl:if test="$put/item/tns2:Event/tns2:bookIsbn"&gt;&lt;tns2:bookIsbn&gt;&lt;xsl:value-of select="$put/item/tns2:Event/tns2:bookIsbn"/&gt;&lt;/tns2:bookIsbn&gt;&lt;/xsl:if&gt;&lt;xsl:if test="$put/item/tns2:Event/tns2:date"&gt;&lt;tns2:date&gt;&lt;xsl:value-of select="$put/item/tns2:Event/tns2:date"/&gt;&lt;/tns2:date&gt;&lt;/xsl:if&gt;&lt;/tns:operationRequest3&gt;&lt;/parameters&gt;&lt;/tns:operationRequest3&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;</inputBinding>  
                <inputBindings> 
                  <partBinding expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://xmlns.example.com/20140430151657&quot; xmlns:tns1=&quot;http://www.example.org/Events/REST/1398859882503/ConceptSchema&quot; xmlns:tns2=&quot;http://www.example.org/Events&quot; version=&quot;2.0&quot;&gt;
    &lt;xsl:param name=&quot;put.parameters&quot;/&gt;
    &lt;xsl:param name=&quot;put.item&quot;/&gt;
    &lt;xsl:template name=&quot;updateEvent-input&quot; match=&quot;/&quot;&gt;
        &lt;tns:operationRequest3&gt;
            &lt;tns2:id&gt;
                &lt;xsl:value-of select=&quot;$put.parameters/EventID&quot;/&gt;
            &lt;/tns2:id&gt;
            &lt;xsl:if test=&quot;$put.item/tns2:summary&quot;&gt;
                &lt;tns2:summary&gt;
                    &lt;xsl:value-of select=&quot;$put.item/tns2:summary&quot;/&gt;
                &lt;/tns2:summary&gt;
            &lt;/xsl:if&gt;
            &lt;xsl:if test=&quot;$put.item/tns2:description&quot;&gt;
                &lt;tns2:description&gt;
                    &lt;xsl:value-of select=&quot;$put.item/tns2:description&quot;/&gt;
                &lt;/tns2:description&gt;
            &lt;/xsl:if&gt;
            &lt;xsl:if test=&quot;$put.item/tns2:authorName&quot;&gt;
                &lt;tns2:authorName&gt;
                    &lt;xsl:value-of select=&quot;$put.item/tns2:authorName&quot;/&gt;
                &lt;/tns2:authorName&gt;
            &lt;/xsl:if&gt;
            &lt;xsl:if test=&quot;$put.item/tns2:bookIsbn&quot;&gt;
                &lt;tns2:bookIsbn&gt;
                    &lt;xsl:value-of select=&quot;$put.item/tns2:bookIsbn&quot;/&gt;
                &lt;/tns2:bookIsbn&gt;
            &lt;/xsl:if&gt;
            &lt;xsl:if test=&quot;$put.item/tns2:date&quot;&gt;
                &lt;tns2:date&gt;
                    &lt;xsl:value-of select=&quot;$put.item/tns2:date&quot;/&gt;
                &lt;/tns2:date&gt;
            &lt;/xsl:if&gt;
        &lt;/tns:operationRequest3&gt;
    &lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0"/> 
                </inputBindings>  
                <sources> 
                  <source linkName="updateEventToputOut"/> 
                </sources> 
              </invoke> 
            </flow> 
          </scope> 
        </onMessage>  
        <onMessage operation="delete" partnerLink="Event" portType="ns1:Event" xpdlId="85846f13-48af-40f1-9dab-d68ae7db273b" variable="delete" x="9" y="1206" width="439" height="227" type="onMessage"> 
          <scope name="scope5"> 
            <variables> 
              <variable name="ServiceOp" type="xsd:string"> 
                <from> 
                  <literal>Event/delete</literal> 
                </from> 
              </variable> 
            </variables>  
            <faultHandlers> 
              <catchAll faultDetailsVar="FaultDetails" faultNameVar="FaultName" xpdlId="48acc076-850f-4379-8a4f-61e2776abdd9" x="42" y="216" width="338" height="21" collapse="true" type="catchAll"> 
                <scope name="scope9"> 
                  <flow name="flow9"> 
                    <links> 
                      <link name="Log4ToReply4" points="[[153,74],[237,74]]"/> 
                    </links>  
                    <extensionActivity x="104" y="50" width="48" height="48" type="log" name="Log4"> 
                      <activityExtension expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://www.tibco.com/pe/WriteToLogActivitySchema&quot; version=&quot;2.0&quot;&gt;&lt;xsl:param name=&quot;FaultDetails&quot;/&gt;&lt;xsl:param name=&quot;ServiceOp&quot;/&gt;&lt;xsl:template name=&quot;Log4-input&quot; match=&quot;/&quot;&gt;&lt;tns:ActivityInput&gt;&lt;msgCode&gt;&lt;xsl:value-of select=&quot;&amp;quot;1503&amp;quot;&quot;/&gt;&lt;/msgCode&gt;&lt;message&gt;&lt;xsl:value-of select=&quot;concat($ServiceOp, &amp;quot; failed: &amp;quot;, $FaultDetails/Msg)&quot;/&gt;&lt;/message&gt;&lt;/tns:ActivityInput&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0" inputVariable="Log4-input" name="Log4" xpdlId="12c613bd-8f88-4356-82df-163af76be46c">  
                        <sources> 
                          <source linkName="Log4ToReply4"/> 
                        </sources>  
                        <inputBindings> 
                          <inputBinding expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://www.tibco.com/pe/WriteToLogActivitySchema&quot; version=&quot;2.0&quot;&gt;&lt;xsl:param name=&quot;FaultDetails&quot;/&gt;&lt;xsl:param name=&quot;ServiceOp&quot;/&gt;&lt;xsl:template name=&quot;Log4-input&quot; match=&quot;/&quot;&gt;&lt;tns:ActivityInput&gt;&lt;msgCode&gt;&lt;xsl:value-of select=&quot;&amp;quot;1503&amp;quot;&quot;/&gt;&lt;/msgCode&gt;&lt;message&gt;&lt;xsl:value-of select=&quot;concat($ServiceOp, &amp;quot; failed: &amp;quot;, $FaultDetails/Msg)&quot;/&gt;&lt;/message&gt;&lt;/tns:ActivityInput&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0"/> 
                        </inputBindings>  
                        <config> 
                          <bwext:BWActivity xmlns:bwext="http://tns.tibco.com/bw/model/core/bwext" xmlns:activityconfig="http://tns.tibco.com/bw/model/activityconfig" xmlns:generalactivities="http://ns.tibco.com/bw/palette/generalactivities" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" activityTypeID="bw.generalactivities.log" version="6.0.0.001">  
                            <activityConfig> 
                              <properties name="config" xsi:type="activityconfig:EMFProperty"> 
                                <type href="http://ns.tibco.com/bw/palette/generalactivities#//Log"/>  
                                <value role="Info" suppressJobInfo="true" xsi:type="generalactivities:Log"/> 
                              </properties> 
                            </activityConfig> 
                          </bwext:BWActivity> 
                        </config> 
                      </activityExtension> 
                    </extensionActivity>  
                    <reply faultName="serverFault" name="Reply4" operation="delete" partnerLink="Event" portType="ns1:Event" xpdlId="e3ffe451-84c1-40cb-a53b-61efffbd4a84" variable="Reply4-input" x="237" y="50" width="48" height="48" type="reply"> 
                      <inputBinding expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tns="http://www.example.org/Events/REST/1398859882503" xmlns:tns1="http://tns.tibco.com/bw/REST" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:bw="http://www.tibco.com/bw/xpath/bw-custom-functions" version="2.0"&gt;&lt;xsl:param name="FaultDetails"/&gt;&lt;xsl:param name="ServiceOp"/&gt;&lt;xsl:template name="Reply4-input" match="/"&gt;&lt;tns:delete5XXFaultMessage&gt;&lt;serverError&gt;&lt;tns1:server5XXError&gt;&lt;statusCode&gt;&lt;xsl:value-of select="xsd:integer(bw:getModuleProperty(&amp;quot;ec_ServiceUnavailable&amp;quot;))"/&gt;&lt;/statusCode&gt;&lt;message&gt;&lt;xsl:value-of select="concat($ServiceOp, &amp;quot; failed: &amp;quot;, $FaultDetails/Msg)"/&gt;&lt;/message&gt;&lt;/tns1:server5XXError&gt;&lt;/serverError&gt;&lt;/tns:delete5XXFaultMessage&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;</inputBinding>  
                      <inputBindings> 
                        <partBinding expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://www.example.org/Events/REST/1398859882503&quot; xmlns:tns1=&quot;http://tns.tibco.com/bw/REST&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:bw=&quot;http://www.tibco.com/bw/xpath/bw-custom-functions&quot; version=&quot;2.0&quot;&gt;
    &lt;xsl:param name=&quot;FaultDetails&quot;/&gt;
    &lt;xsl:param name=&quot;ServiceOp&quot;/&gt;
    &lt;xsl:template name=&quot;Reply4-input&quot; match=&quot;/&quot;&gt;
        &lt;tns1:server5XXError&gt;
            &lt;statusCode&gt;
                &lt;xsl:value-of select=&quot;xsd:integer(bw:getModuleProperty(&amp;quot;ec_ServiceUnavailable&amp;quot;))&quot;/&gt;
            &lt;/statusCode&gt;
            &lt;message&gt;
                &lt;xsl:value-of select=&quot;concat($ServiceOp, &amp;quot; failed: &amp;quot;, $FaultDetails/Msg)&quot;/&gt;
            &lt;/message&gt;
        &lt;/tns1:server5XXError&gt;
    &lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0"/> 
                      </inputBindings>  
                      <targets> 
                        <target linkName="Log4ToReply4"/> 
                      </targets> 
                    </reply> 
                  </flow> 
                </scope> 
              </catchAll> 
            </faultHandlers>  
            <flow name="flow5"> 
              <links> 
                <link name="deleteEventTodeleteOut" points="[[215,39],[308,39]]"/> 
              </links>  
              <empty name="OnMessageStart4" constructor="onMessageStart" xpdlId="cb24bc96-e2dd-43a2-92ee-27e76ae5e688" x="-19" y="63" width="16" height="16" type="onMessageStart"/>  
              <empty name="OnMessageEnd4" constructor="onMessageEnd" xpdlId="f9a06396-15e2-4379-af49-42eae92e5b7a" x="437" y="63" width="16" height="16" type="onMessageEnd"/>  
              <reply name="deleteOut" operation="delete" partnerLink="Event" portType="ns1:Event" xpdlId="e5555758-c6f5-49f3-827b-cdb48fa2d449" variable="deleteOut-input" x="308" y="15" width="48" height="48" type="reply"> 
                <inputBinding expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tns="http://www.example.org/Events/REST/1398859882503" xmlns:tns1="http://xmlns.example.com/20140430151657" version="2.0"&gt;&lt;xsl:param name="deleteEvent"/&gt;&lt;xsl:template name="deleteOut-input" match="/"&gt;&lt;tns:deleteResponse&gt;&lt;msg&gt;&lt;xsl:value-of select="$deleteEvent/parameters/tns1:operationResponse4/out"/&gt;&lt;/msg&gt;&lt;/tns:deleteResponse&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;</inputBinding>  
                <inputBindings> 
                  <partBinding expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://www.example.org/Events/REST/1398859882503&quot; xmlns:tns1=&quot;http://xmlns.example.com/20140430151657&quot; version=&quot;2.0&quot;&gt;
    &lt;xsl:param name=&quot;deleteEvent.parameters&quot;/&gt;
    &lt;xsl:template name=&quot;deleteOut-input&quot; match=&quot;/&quot;&gt;
        &lt;msg&gt;
            &lt;xsl:value-of select=&quot;$deleteEvent.parameters/out&quot;/&gt;
        &lt;/msg&gt;
    &lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0"/> 
                </inputBindings>  
                <targets> 
                  <target linkName="deleteEventTodeleteOut"/> 
                </targets> 
              </reply>  
              <invoke inputVariable="deleteEvent-input" name="deleteEvent" operation="deleteEvent" outputVariable="deleteEvent" partnerLink="Service" portType="ns2:Service" xpdlId="56dc79cb-0e2b-4710-a1e9-76968d95676d" x="166" y="15" width="48" height="48" type="invoke"> 
                <inputBinding expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0">&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tns="http://xmlns.example.com/20140430151657" xmlns:tns1="http://www.example.org/Events/REST/1398859882503/ConceptSchema" version="2.0"&gt;&lt;xsl:param name="delete"/&gt;&lt;xsl:template name="deleteEvent-input" match="/"&gt;&lt;tns:operationRequest4&gt;&lt;parameters&gt;&lt;tns:operationRequest4&gt;&lt;EventID&gt;&lt;xsl:value-of select="$delete/parameters/tns1:EventParameters/EventID"/&gt;&lt;/EventID&gt;&lt;/tns:operationRequest4&gt;&lt;/parameters&gt;&lt;/tns:operationRequest4&gt;&lt;/xsl:template&gt;&lt;/xsl:stylesheet&gt;</inputBinding>  
                <inputBindings> 
                  <partBinding expression="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:tns=&quot;http://xmlns.example.com/20140430151657&quot; xmlns:tns1=&quot;http://www.example.org/Events/REST/1398859882503/ConceptSchema&quot; version=&quot;2.0&quot;&gt;
    &lt;xsl:param name=&quot;delete.parameters&quot;/&gt;
    &lt;xsl:template name=&quot;deleteEvent-input&quot; match=&quot;/&quot;&gt;
        &lt;tns:operationRequest4&gt;
            &lt;EventID&gt;
                &lt;xsl:value-of select=&quot;$delete.parameters/EventID&quot;/&gt;
            &lt;/EventID&gt;
        &lt;/tns:operationRequest4&gt;
    &lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;" expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xslt1.0"/> 
                </inputBindings>  
                <sources> 
                  <source linkName="deleteEventTodeleteOut"/> 
                </sources> 
              </invoke> 
            </flow> 
          </scope> 
        </onMessage> 
      </pick> 
    </flow> 
  </scope> 
</process>
